//
//  Utils.h
//  ChinaBookingPhone
//
//  Created by 杨 锐 on 14-5-21.
//  Copyright (c) 2014年 xingheng. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <CommonCrypto/CommonDigest.h>

@interface UtilsHelper : NSObject

+ (void)deleArchiverFile:(NSString*)filePath;
+ (NSString *)MD5:(NSString *)input;
+ (NSString *)stringEnCode:(NSString*)str;
+ (NSString *)stringDeCode:(NSString*)str;
+ (NSString *)stringReplace:(NSString*)content;
+ (NSString *)stringAtIndexByCount:(NSString*)string withCount:(NSInteger)count;
- (NSString *)lowercaseFirstCharacter:(NSString*)string;
- (NSString *)uppercaseFirstCharacter:(NSString*)string;
+ (NSArray *)ArrayOverTurn:(NSArray*)arr;
+ (NSMutableArray *)returnStrArray:(NSString*)split str:(NSString *)str;
+ (UIImage *)imageWithImageSize:(UIImage*)image scaledToSize:(CGSize)newSize;
+ (UIImage *)imageWithImageSimple:(UIImage*)image scaledToSize:(CGSize)newSiz;
+ (NSUInteger)unicodeLengthOfString:(NSString *)text;
+ (NSInteger)getRandNum:(NSInteger)from to:(NSInteger)to;
+ (UIViewController *)findViewController:(UIView *)sourceView;
+ (UIButton *)DrawStretchButtonWihtNormalImage:(UIImage*)NormalImg
                             HighlightedImage:(UIImage*)HighImg
                                     Disabled:(UIImage*)DisImg
                                  ButtonFrame:(CGRect)buttonFrame;
+(NSInteger)ChineseStringFirstLetterConvert:(NSString *)convertStr;
@end
